#pragma once
#include"thread_cache.h"

namespace MemoryPool
{

	class memory_pool
	{
	public:
		static void* allocate(size_t size)
		{
			return thread_cache::getInstance()->allocate(size);
		}

		static void deallocate(void* ptr, size_t size)
		{
			thread_cache::getInstance()->deallocate(ptr, size);
		}
	};
}